using Microsoft.Office.Interop.Excel;
using System;
using System.Collections;
using System.Diagnostics;
using System.Reflection;
internal class PayOrderExeclUtil
{
	private static ArrayList arrayList_0;
	private static object object_0 = Missing.Value;
	public static ArrayList smethod_0(string string_0, out string string_1)
	{
		ArrayList result = null;
		ApplicationClass applicationClass_ = null;
		try
		{
			applicationClass_ = new ApplicationClass();
			string_1 = "";
		}
		catch (Exception ex)
		{
			string_1 = ex.ToString();
			result = null;
		}
		finally
		{
			PayOrderExeclUtil.smethod_5(applicationClass_);
		}
		return result;
	}
	private static void smethod_1(Worksheet worksheet_0)
	{
		PayOrderExeclUtil.arrayList_0 = new ArrayList();
		int int_ = 1;
		string text = PayOrderExeclUtil.smethod_3(worksheet_0, 1, int_);
	}
	private static int smethod_2(string string_0)
	{
		for (int i = 0; i < PayOrderExeclUtil.arrayList_0.Count; i++)
		{
			if (string_0.Equals((string)PayOrderExeclUtil.arrayList_0[i]))
			{
				return i + 1;
			}
		}
		return 1;
	}
	private static string smethod_3(Worksheet worksheet_0, int int_0, int int_1)
	{
		return "";
	}
	public static string smethod_4(string string_0)
	{
		if (string_0.Equals("订单创建"))
		{
			return "11";
		}
		if (string_0.Equals("订单付款"))
		{
			return "12";
		}
		if (string_0.Equals("订单失效"))
		{
			return "13";
		}
		if (string_0.Equals("订单成功"))
		{
			return "14";
		}
		if (string_0.Equals("订单结算"))
		{
			return "3";
		}
		return "0";
	}
	private static void smethod_5(ApplicationClass applicationClass_0)
	{
		try
		{
			if (applicationClass_0 != null)
			{
				applicationClass_0 = null;
			}
			PayOrderExeclUtil.smethod_6();
		}
		catch
		{
		}
	}
	public static void smethod_6()
	{
		Process[] processesByName = Process.GetProcessesByName("Excel");
		for (int i = 0; i < processesByName.Length; i++)
		{
			Process process = processesByName[i];
			process.Kill();
		}
	}
}
